package cn.aopmin.domain.constant;

/**
 * Redis key 常量
 * @author 白豆五
 * @since 2025/3/12
 */
public class RedisKeyTemplate {

    /**
     * 前缀
     */
    private static final String PREFIX = "book:";

    /**
     * 点赞
     */
    public static final String BOOK_LIKED_SET = "liked:userId:%d";


    public static String getKey(String key, Object... objects) {
        return PREFIX + String.format(key, objects);
    }
}